<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{if !empty(input('keyword'))}{:input('keyword')}-{/if}{$title|raw}{if input('page') gt 1}-{:lang('v_current')}{:input('page')}{:lang('v_page')}{/if}</title>
<meta name="keywords" content="{$keyword|raw}" />
<meta name="description" content="{$description|raw}" />
<link rel="shortcut icon" type="image/x-icon" href="{$siteRs.ico}" />
{include file="public/css" /}
</head>
<body>
{include file="public/head" /}
<!--面包屑 开始-->
<div class="w-100 page-banner text-center text-white h3 mb-0" style="background:url({$page_banner}) center center no-repeat;">
    {if !empty(input('sortid'))}{$sortRs.title}{else /}{:lang('v_news')}{/if}
</div>
<div class="w-100 bg-light py-2">
    <div class="container">
        <div class="row">
            <div class="col-md-8 pt-1 d-none d-sm-block">
                <a href="{$home_path}" class="mr-2">{:lang('v_home')}</a> <i class="fa fa-angle-right"></i>
                <a href="<?php the_list_url($controller); ?>" class="ml-2">{:lang('v_news')}</a>
                {volist name="crumb" id="listnavRs"}
                    <i class="fa fa-angle-right ml-2 mr-2"></i><a href="{$listnavRs.url}">{$listnavRs.title}</a>
                {/volist}
                {if !empty(input('keyword'))}<i class="fa fa-angle-right ml-2 mr-2"></i>{:lang('v_search')}<span class="text-danger ml-2">“{:input('keyword')}”</span>{/if}
            </div>
            <div class="col-md-4">
                <form name="form_search" id="form_search" method="get" action="<?php the_list_url($controller); ?>">
                    <div class="input-group">
                        <input type="text" class="form-control form-control-sm btn-rounded" name="keyword" id="keyword" placeholder="{:lang('v_keyword_tips')}...">
                        <span class="input-group-append"><button type="button" name="btn_search" id="btn_search" class="btn btn-sm btn-rounded px-3"><i class="fa fa-search"></i></button></span>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--面包屑 结束-->
<!--主体 开始-->
<div class="container mt-4 mt-sm-5">
    <div class="row">
        <!-- 分类 -->
        <div class="col-md-12 text-center">
            <a href="<?php the_list_url($controller); ?>" class="btn btn-{if empty(input('sortid'))}secondary{else /}default{/if} btn-rounded px-4 mx-2 mb-3"><span class="h6">{:lang('v_all')} {:lang('v_sort')}</span></a>
            <?php $sort_list = sort_list(40, $lang, $controller); ?>
            {volist name="sort_list" id="sortRs"}
                <a href="<?php the_category_url($sortRs['id'], $controller); ?>" class="btn btn-{if input('sortid') eq $sortRs['id']}secondary{else /}default{/if} btn-rounded px-4 mx-2 mb-3"><span class="h6">{$sortRs.title}</span></a>
            {/volist}
            <hr class="my-sm-4">
        </div>
    </div>
    <!--列表 开始-->
    {empty name="list"}
        <div class="row"><div class="col-md-12 text-center">{:lang('v_nodata')}</div></div>
    {else /}
        <div class="row">
            {volist name="list" id="rs"}
                <div class="col-md-12 mb-3">
                        <h5 class="mb-2 ellipsis line-1"><a href="{$rs.url}">{$rs.title|raw}</a></h5>
                        <p class="text-muted ellipsis line-3">{$rs.description|raw}</p>
                        <div class="text-muted">
                            <span class="float-left mt-2">
                                <i class="fa fa-cubes mr-1"></i>{:lang('v_sort')}：{$rs.sort_title}
                                <i class="fa fa-eye ml-2 mr-1"></i> {:lang('v_hits')}：{$rs.hits}
                            </span>
                            <span class="float-right d-none d-md-block">
                                <a href="{$rs.url}" class="btn btn-secondary btn-rounded px-3 py-1 h6">{:lang('v_view')} &raquo;</a>
                            </span>
                            <div class="clearfix"></div>
                        </div>
                        <hr class="my-1">
                </div>
            {/volist}
        </div>
        <!--分页-->
        <div class="row mt-4 h6">
            <div class="col-md-4 col-sm-12">{:lang('v_total')} {$last_page} {:lang('v_page')} {$total} {:lang('v_records')}</div>
            <div class="col-md-8 col-sm-12 mt-4 mt-sm-0">
                <div class="pages float-left float-sm-right">{$list->render()|raw}</div>
            </div>
        </div>
    {/empty}
    <!--列表 结束-->
</div>
{include file="public/foot" /}
</body>
</html>